<%@ page language="java" import="java.util.*" import="java.sql.*" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<div class="modal fade" id="upModal<%=id%>" tabindex="-1" aria-labelledby="upModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="upModalLabel<%=id%>">修改用户</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <form action="ad_user.jsp" method="post">
                    <div class="form-group" style="display: none">
                        <label for="up_id<%=id%>">ID:</label>
                        <input type="text" value="<%=id%>" name="up_id" required class="form-control" id="up_id<%=id%>">
                    </div>
                    <div class="form-group">
                        <label for="up_user<%=id%>">用户名:</label>
                        <input type="text" value="<%=name%>" name="up_user" disabled required class="form-control" id="up_user<%=id%>">
                    </div>
                    <div class="form-group">
                        <label for="up_password<%=id%>">密码:</label>
                        <input type="password" value="<%=psw%>" name="up_psw" required class="form-control"
                               id="up_password<%=id%>">
                    </div>
                    <div class="form-group">
                        <label for="up_address<%=id%>">地址:</label>
                        <input type="text" value="<%=address%>" name="up_address" required class="form-control"
                               id="up_address<%=id%>">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
                        <button type="submit" class="btn btn-primary">确认</button>
                    </div>
                </form>
            </div>

        </div>
    </div>
</div>
<script>
    function xiugai(id) {
        console.log(id)
    }
</script>
